#ifndef OBJECTMANAGER_H_
#define OBJECTMANAGER_H_

#include <vector>
using std::vector;

class CBase;

class ObjectManager
{
private:
	vector<CBase*> m_vObjects;
	static ObjectManager* pInstance;

public:
	ObjectManager( void );
	~ObjectManager( void );
	static ObjectManager* GetInstance( void );
	void DeleteInstance( void );
	void UpdateObjects( float fElapsedTime );
	void RenderObjects( void );
	void AddObject( CBase* pBase );
	void RemoveObject( CBase* pBase );
	void RemoveAllObjects( void );
	bool CheckCollision( void );
	vector<CBase*> GetObjects(){return m_vObjects;}
};
#endif